﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MaxLeaf.Common;
using System.Data;
using MaxLeaf.DB;
using System.Data.SqlClient;

namespace MaxLeaf.DAL.K3
{
    public class mLogDAL
    {
        public bool Delete(DBAccess dbCon, DataRowView drv)
        {
            string strSql = @"delete   from mLog where recid=@recid;delete   from mLogComplete where recid=@recid";

            SqlParameter[] arrParam = new SqlParameter[] { 
                new SqlParameter("@recid", drv["Recid"])                 
            };
            dbCon.ExecuteSql( strSql, arrParam);

            return true;
        }
    }
}